export function generateColumns() {
  return [
    {
      title: '序号',
      width: '80',
      align: 'left',
      render: (h, { index }) => {
        return h("RowTools", {
          props: {
            data: [
              {
                text: index + 1,
              }
            ]
          }
        });
      }
    },
    {
      title: '校验结果',
      key: 'resultStateStr',
      render: (h, {row}) => {
        return this.resultHandle(h, row)
      }
    },
    {
      title: '数据状态',
      key: 'crsrmStateStr'
    },
    {
      title: '数据来源',
      key: 'crsrmDataSourceStr'
    },
    {
      title: '更新时间',
      key: 'crsrmUpdateTime',
      width: 140
    },
    {
      title: '操作',
      align: "left",
      width: 60,
      render: (h, { row }) => {
        return h("RowTools", {
          props: {
            data: [
              {
                type: 'icon',
                icon: 'md-eye',
                text: '查看',
                handle: () => this.detailHandle(row.id)
              }
            ]
          }
        });
      }
    }
  ]
}
